package com.whiteape.book.utils.media;

import android.content.Context;
import android.os.Bundle;

import androidx.loader.content.CursorLoader;

import com.whiteape.book.model.type.LoadFileType;

/**
 * Created by newbiechen on 2018/1/14.
 */

public class LoaderCreator {
//    public static final int ALL_BOOK_FILE = 1;
//    public static final int ALL_SITE_SOURCE_FILE = 2;

    public static CursorLoader create(Context context, int id, Bundle bundle) {
        LocalFileLoader loader;
//        switch (id) {
//            case LoadFileType.FILE_TYPE_BOOK:
//                loader = new LocalFileLoader(context, id);
//                break;
//            case LoadFileType.FILE_TYPE_SITE_SOURCE:
//                loader = new LocalFileLoader(context, id);
//                break;
//                case LoadFileType.FILE_TYPE_TYPEFACE:
//                    loader = new
//
//            default:
//                throw new IllegalArgumentException("The id of Loader is invalid!");
//        }
        loader = new LocalFileLoader(context, id);
        return loader;

    }
}
